package com.roger.myHome.controller;

import com.roger.myHome.service.DictService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/dict")
public class DictController {
    @Resource
    private DictService dictService;

    @RequestMapping(value = "/loadCombobox/{type}/{parentId}",produces="text/html;charset=UTF-8")
    public String loadCombobox(@PathVariable String type, @PathVariable Long parentId){
        return dictService.loadCombobox(type, parentId);
    }
}
